const rect = document.querySelector('.rect')

document.addEventListener('mousemove',function(e){
    rect.style.top = e.y +'px'
    rect.style.left = e.x+'px'
})
